package Test6.Operation;

import java.util.Scanner;

public class OutSystem {
    public void outSystem(){
        Scanner sc= new Scanner(System.in);
        System.out.println("操作结束,按1返回主菜单!");
        int a = sc.nextInt();
        if(a==1){
            System.out.println("即将返回主菜单");
        }else{
            System.out.println("输入错误!即将退出程序!");
            System.exit(0);
        }
    }
}
